package com.cgwx.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 申请状态
 */
public enum ApplicationStatus implements InfoEnum {
    INVALID("申请无效","INVALID","超出锁定时间"),
    WAIT_FOR_APPROVE("待审批","WAIT_FOR_APPROVE",""),
    APPROVE("审批通过","APPROVE",""),
    REJECT("审批未通过","REJECT",""),
    CANCEL("申请取消","CANCEL",""),
    ;
    private String info;
    private String status;
    private String remark;

    @JsonValue
    public String getInfo() {
        return info;
    }

    public String getStatus() {
        return status;
    }

    public String getRemark() {
        return remark;
    }

    ApplicationStatus(String info, String status,String remark) {
        this.info = info;
        this.status = status;
        this.remark = remark;
    }



    @Override
    public String getSelfCode() {
        return this.status;
    }

    @Override
    public String getSelfInfo() {
        return this.info;
    }


}
